//
//  HNNewsFirstView.m
//  HappyNews
//
//  Created by Sai on 16/1/12.
//  Copyright © 2016年 BPWBANP. All rights reserved.
//

#import "HNNewsFirstView.h"

@implementation HNNewsFirstView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview];
    }
    return self;
}

- (void)addSubview
{
    UIImageView *backImageView = [[UIImageView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    backImageView.image = [UIImage imageNamed:@"star"];
    [self addSubview:backImageView];
    
   
    
    UILabel *Lable = [[UILabel alloc]initWithFrame:CGRectMake(kScreenWidth / 7, kScreenHeight / 3 -20, kScreenWidth - 100, 80)];
    Lable.text = @"繁忙的都市中偶尔停下你的脚步，一起来观察这缤纷的世界...";
    Lable.font = [UIFont systemFontOfSize:20 weight:2];
    Lable.numberOfLines = -1;
    Lable.textColor = [UIColor whiteColor];
    [self addSubview:Lable];
    
     _but = [UIButton buttonWithType:(UIButtonTypeCustom)];
    _but.frame = CGRectMake(Lable.frame.origin.x, Lable.bottom , 30, 30);
    _but.backgroundColor = [UIColor clearColor];
    [self addSubview:_but];
    
    UIImageView *backImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 30, 30)];
    backImage.image = [UIImage imageNamed:@"btn_nav_share"];
    backImage.userInteractionEnabled = NO;
    [_but addSubview:backImage];
    
    
}


@end
